/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package util;

/**
 *
 * @author Ku81
 */
public class Random {
    public static String randomString(int length){
        String uperStr = "QAZWSXEDCRFVTGBYHNUJMIKOLP";
        String lowerStr = uperStr.toLowerCase();
        String numberStr ="0123456789";
        String total="";
        String result = "";
        total = uperStr + lowerStr + numberStr;
        for (int i = 0; i < length; i++) {
            int tmp = (int) Math.round(Math.random()*total.length());
            result +=total.charAt(tmp);
        }
        return result;
    }
}
